package org.jeecg.modules.meter.service;

import org.jeecg.entity.meter.MeterChangeInfo;
import org.jeecg.entity.meter.MeterChargeInfo;
import com.baomidou.mybatisplus.extension.service.IService;
import org.jeecg.enums.meter.MeterChargeTypeEnum;
import org.jeecg.vo.meter.MeterChargeRespVo;
import org.jeecg.vo.meter.MeterSwitchRespVo;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * @Description: 仪表费用明细表
 * @Author: jeecg-boot
 * @Date:   2020-11-20
 * @Version: V1.0
 */
public interface IMeterChargeInfoService extends IService<MeterChargeInfo> {

    List<MeterSwitchRespVo> refreshRemainByPay(List<MeterChargeRespVo> meterChargeRespVoList, String str, Integer code);
//    List<MeterSwitchRespVo> refreshRemainAuto(List<MeterChargeRespVo> meterChargeRespVoList, String str, Integer code);



    MeterChargeInfo getByOrderId(String orderId);
    void updateChargeStatus(String id, Integer chargeStatus);
    BigDecimal queryAmount(String id);

    MeterChargeInfo getByReadId(String readId);

    List<MeterChargeInfo> findHisByMeterId(String meterId, Date chargeTime, Integer meterChargeType);
}
